package com.wgs.onomastici;

import android.app.Activity;
import android.app.AlertDialog;
import android.view.MenuItem;

public abstract class AbstractBaseActivity extends Activity {

	
	
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		
		AlertDialog.Builder builder=null;
		
		
		switch (item.getItemId()) {
		case R.id.menu_settings1:
			builder=DialogFactory.createDialog(DialogFactory.DIALOG_INFO,this);
			if (builder!=null)builder.show();
			break;
		case R.id.menu_settings2:
			builder=DialogFactory.createDialog(DialogFactory.DIALOG_ABOUT,this);
			if (builder!=null)builder.show();
			break;
		}
		return true;
	}
	
	
	
}
